/**
 * Created by cchen on 2015/4/23.
 */
/*

*/
/*宝宝树66小区二次改造    mod   zhangm  20170825  start*/
function toDownload() {
    window.location="ssxiaoqu://";//打开某手机上的某个app应用
    setTimeout(function(){
    var data = {"url": "http://66xiaoqu.babytreeimg.com/app/json/download_1023.json"},
        getData = function (res) {
            var res = eval("(" + res + ")");
            var u = navigator.userAgent, app = navigator.appVersion;
            var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //android�ն˻���uc�����
            var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios�ն�
            var ua = navigator.userAgent.toLowerCase();
            var isWx = ua.match(/MicroMessenger/i) === "micromessenger"
            var url = "#";
            var os = "";
            if (isAndroid) {
                url = res.android.default;
                os = "Android";
                $("div.device_text span").css("font-size", "16px");
                if (isWx) {
                    $('footer').show();
                    url = res.android.wx;
                    os = "Android";
                }
            }
            else if (isiOS) {
                url = res.android.default;
                os = "iOS"
                if (isWx) {
                    $('footer').show();
                    url = res.android.default;
                    os = "iOS";
                }
            }
            location.href = url;
        }
    netWork(data, getData);
    },500);
}
/*宝宝树66小区二次改造    mod   zhangm  20170825  start*/
